#ifndef BULLET_2_H
#define BULLET_2_H

#include <QtGui>
#include "collisia_control.h"
#include "cash.h"

class BULLET_2 : public QGraphicsObject
{
    Q_OBJECT

    QPainterPath *border;
    QPixmap *im;

    QGraphicsItemAnimation *anim_rocket;
    QTimeLine *rocket_time_line;

    QPoint begin;

    COLLISIA_CONTROL *collisia_control;

    int point;

    CASH *cash;

    SOUND_POWER *shot;

public:

    explicit BULLET_2(bool razlet_v_levo, int angle_attacks, bool stvol_left, QPoint my_coords, SCENE *scene, QTimeLine *global_tl, CASH *cash);

    QPainterPath shape() const;

    QRectF boundingRect() const;

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);

    ~BULLET_2();

    int type() const;

    
signals:
    
    void Kill_Me_Please(QGraphicsObject *);

public slots:

    void set_shape();

    void Damage_Detected(QPointF a,int d);

    
};

#endif // BULLET_2_H
